<template>
  <div>
    <Component :is="componentName"></Component>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue';
import config from '@/config';
import componentsOpt from '@/views/login/components/index';
defineOptions({
  name: 'Login',
  components: {
    ...componentsOpt
  }
});
const componentName = ref(config.loginType+'-index');
</script>
